package com.lago.construnctor;

import org.junit.Test;

/**
 * @author yuhe
 * @version 1.0
 * @date 2020/11/19 10:24
 */
public class ComputerTest {


    public static void main(String[] args) {
        ComputerBuilder computerBuilder = new ComputerBuilder();
        computerBuilder.installDisplayer("显示器");
        computerBuilder.installMMainUnit("主机");
        computerBuilder.installmouse("鼠标");
        computerBuilder.installkeyboard("键盘");

        Computer computer = computerBuilder.getComputer();
        System.out.println(computer);

    }
}
